package com.tianyang.yukuaifuzs.module.scrollable;

import android.animation.ObjectAnimator;
import android.view.animation.Interpolator;

/**
 * Description：关闭动画配置信息实现类
 * Created by 薛勇军 on 2018/7/18.
 */

public class InterpolatorCloseUpAnimatorConfigurator implements CloseUpAnimatorConfigurator {

    private final Interpolator mInterpolator;

    public InterpolatorCloseUpAnimatorConfigurator(Interpolator interpolator) {
        this.mInterpolator = interpolator;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void configure(ObjectAnimator animator) {
        animator.setInterpolator(mInterpolator);
    }
}
